/*
*  Copyright (c) 2006-2020, Chukie
*  
*  SPDX-License-Identifier: Apache-2.0
*  
*  @file     : cellular_netdev.h
*  
*  @brief    : 
*  Website   : https://gitee.com/open-embedded
*  
*  
*  Change Logs:
*  Date           Author          Notes
*  2020-06-23     zhaocj       The first version
*/
/* Define to prevent recursive inclusion ------------------------------------*/
#ifndef __CELLULAR_NETDEV_H__
#define __CELLULAR_NETDEV_H__
/* Includes -----------------------------------------------------------------*/
#include <cellular_def.h>
#include "lwip/netif.h"
#ifdef RT_USING_NETDEV
#include <netdev.h>
#ifdef __cplusplus
extern "C"
{
#endif /*__cplusplus*/
/* Exported types -----------------------------------------------------------*/
/* Exported constants -------------------------------------------------------*/
/* Exported macro -----------------------------------------------------------*/
/* Exported functions -------------------------------------------------------*/

rt_err_t cellular_netdev_add(struct netdev *netdev,struct netif *netif);
void cellular_netdev_del(struct netdev *netdev);

#if LWIP_DNS
rt_err_t cellular_netdev_add_dns(struct netdev *netdev, struct netif *netif,const ip_addr_t *dns);
#endif /*LWIP_DNS*/
rt_err_t cellular_netdev_set_hwaddr(struct netdev *netdev,uint8_t *addr,int addr_len);
rt_err_t cellular_netdev_sync(struct netdev *netdev, struct netif *netif);

#ifdef __cplusplus
{
#endif /*__cplusplus*/
#endif /*RT_USING_NETDEV*/
#endif /*__CELLULAR_NETDEV_H__*/
/* End of file****************************************************************/

